package com.hwl.eduservice.feign;

import com.hwl.commonutils.result.RespBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "service-vod", fallback = VodMediaServiceFallBack.class)
public interface VodMediaService {

    @DeleteMapping("/admin/vodMedia/remove/{videoId}")
    RespBean removeVideo(@PathVariable("videoId") String videoId);

    @DeleteMapping("/admin/vodMedia/deleteBatch")
    RespBean deleteBatchVideo(@RequestBody List<String> videoIdList);
}
